export interface IOption {
  value: string | number | boolean
  label: string
  children?: IOption[]
}
const optionsAll = { label: '全部', value: 'all' }
export const tabOptions = [
  {
    name: '全部',
    value: ' ',
  },
  {
    name: '已采用',
    value: '1',
  },
]
// 采购数据
export const orderTabOptions = [
  {
    name: '待确认',
    value: 1,
    count: '0',
  },
  {
    name: '待发货',
    value: 2,
    count: '0',
  },
  {
    name: '订单异常',
    value: 6,
    count: '0',
  },
  {
    name: '待入仓',
    value: 4,
    count: '0',
  },
  {
    name: '已完成',
    value: 8,
    count: '0',
  },
  {
    name: '已取消',
    value: 7,
    count: '0',
  },
]
// 采购单状态poState
export const stateMap = new Map([
  [1, '待确认'],
  [2, '待发货'],
  [3, '待发货-部分发货'],
  [4, '待入仓'],
  [5, '待入仓-部分入仓'],
  [6, '货期异常'],
  [7, '已取消'],
  [8, '已完成'],
  [9, '货期异常-已完成'],
  [10, '待发货-退货重发'],
  [11, '待发货-异常解决'],
])
export const skuStateTextColorMap = new Map([
  [0, 'yellowText'],
  [1, 'yellowText'],
  [2, 'greenText'],
  [3, 'yellowText'],
  [4, 'yellowText'],
  [5, 'yellowText'],
  [6, 'greenText'],
  [8, 'bgYellow'],
  [9, 'bgGreen'],
])
// sku状态skuState
// sku状态: 0-正常, 2-审核完成, 3-正在审核, 4-货期修改, 5-已确认, 6-已全部入仓, 7-已取消, 8-退货重发, 9-已发货
export const skuStateTextMap = new Map([
  [0, ''],
  [1, ''],
  [2, '已通过'],
  [3, '正在审核'],
  [4, ''],
  [5, ''],
  [6, '已全部入仓'],
  [7, '已取消'],
  [8, '退货重发'],
  [9, '已发货'],
])
export const poStateBgColorMap = new Map([
  [1, 'bgYellow'],
  [2, 'bgYellow'],
  [3, 'bgYellow'],
  [4, 'bgBlue'],
  [5, 'bgBlue'],
  [6, 'bgRed'],
  [7, 'bgGray'],
  [8, 'bgGray'],
  [9, 'bgGray'],
  [10, 'bgYellow'],
  [11, 'bgYellow'],
])
export const poStateTipMap = new Map([
  [2, '请尽快发货'],
  [3, '请尽快发货'],
  [4, '待好达威入仓'],
  [5, '待好达威入仓'],
  [6, '待好达威处理'],
  [7, ''],
  [8, ''],
  [9, ''],
  [10, '请尽快发货'],
  [11, '请尽快发货'],
])
export const originStatusList = [
  {
    curLogStatus: 0,
    operateTime: '',
    operateDesc: '订单下发',
    isGray: true,
  },
  {
    curLogStatus: 1,
    operateTime: '',
    operateDesc: '待确认',
    isGray: true,
  },
  {
    curLogStatus: 2,
    operateTime: '',
    operateDesc: '待发货',
    isGray: true,
  },
  {
    curLogStatus: 4,
    operateTime: '',
    operateDesc: '待入仓',
    isGray: true,
  },
  {
    curLogStatus: 8,
    operateTime: '',
    operateDesc: '已完成',
    isGray: true,
  },
]
